package com.aaa.dem1108.d02;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/11/8  15:21
 */
public class BiJiFactory {
    public static BiJiBen createBiJi(String type){
        if(type.equals("HuaWei")){
            return new HuaWei();
        }else if(type.equals("ShenZhou")){
            return new ShenZhou();
        }else{
            return null;
        }
    }
}
